package com.school.revervationSys.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author msj
 * @since 2024-04-13
 */
@Data
@Accessors(chain = true)
public class Revervation  {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer revervationId;

    @TableField("teacher_id")
    private Integer teacherId;

    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "time")
    private Date time;

    private String status="0";

    @TableField("student_id")
    private Integer studentId;

    @TableField("teacher_name")
    private String teacherName;

    private String remark;


    @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
